import { service } from "@/api/request";

export function borrowBook(params = {}) {
  return service({
    url: "/history/borrow",
    method: "get",
    params: params,
  });
}

export function historyBorrow(params = {}) {
  return service({
    url: "/history/historyBorrow",
    method: "get",
    params: params,
  });
}

export function returnBook(data) {
  return service({
    url: "/history/returnBook",
    method: "post",
    data: data,
  });
}
